﻿var serviceProxy = (function () {
    var s = {
        getLotteryBriefing: function () {
            return parseToJson(service.getLotteryBriefing());
        },

        getWinningDetails: function () {
            return parseToJson(service.getWinningDetails());
        },
        getHistoryBriefingList: function (pageIndex) {
            return parseToJson(service.getHistoryBriefingList(pageIndex));
        }
    };

    function parseToJson(expression) {
        return eval("(" + expression + ")");
    }
    return s;
})();